Fix #15: don’t crash on title change to empty string

Sometimes, on 10.9, WebKit sends an event indicating that the document title has changed to @"", which would cause substring operations in the window title generation method to crash the app. This guards against the empty string.