Fixed bug in prog. action bar title feature- II

There was another bug in the feature - so when checking for whether
string is empty , it should check only after checking if the string is
not null.