fix issue 1603 - NullPointerException on setTitle call

I think the problem with this issue is that the command Activity.getActionBar() might return null even for the API levels that support action bar. This commit should guard from this case.