Fix Bugsense reported NPE.