Fixed MOSYNC-3228: Null-pointer exception in invalidateOptionsMenu.