[IOT-2539] Remove maybe-uninitialized warning