Anticipate and handle null QWebFrame.

A null QWebFrame will cause frameName sent to onNavigationRequested to
equal "" (an empty QString).

see #11374

https://github.com/ariya/phantomjs/issues/11374