Fixed assert error with zsh

with my zsh config I got the following error when I opened a new tab
Gdk-CRITICAL **: IA__gdk_window_set_title: assertion `title != NULL' failed

I added a check for NULL.