Fixed weird null pointer exception caused by options menu being created before fragment