Fix NPE on hardware key devices when optional navbar is disabled at boot

Change-Id: I38bf2a2eb0cb3918b398a8bc8fe7231e115f031e