Fixed possible crashes when Modal ViewControler conforms to ZXCaptureDelegate.