CB-4995 Fix crash when WebView is quickly opened then closed.

Also fixes a leak where callback was never being cleared.