fixed bug in actionbar causing nullpointer crash when adding navbar items