Fix BugSense reported NPE.