Let us avoid calling a method of a nil object, which is why we made the presentedViewController UIViewController variable to begin with.
Pull request: https://github.com/WebKit/WebKit/pull/9813
<rdar://problem/105495284>
Pull request: https://github.com/WebKit/WebKit/pull/12235