MB-8975: Initialize variable first before referencing it.

Change-Id: I15a35e9743e34fe4bb761707cd132d065c237aa5