Do not set a null checked variable to false

Change-Id: I3350e8dd2bcaf9a73da0268d945a9dd90be4abe1