Fixed NullPointerException when getActionBar() returns null
Merge pull request #249 from Ueland/244

Fixed NullPointerException when getActionBar() returns null #244