Fixed null pointer exception when loading WebView

When the WebView is loaded it crashes with a null pointer exception. Fixed that.