fix crash after close DocPreviewController on iOS