Fixes issue #731

When modalView is close, webView gets erased/deleted.