Fix a UIDocumentInteractionController bug when dismissing the document controller.

In some cases dismissing the UIDocumentInteractionController will remove the presenting view controller's views in IOS 7 iPad.

http://stackoverflow.com/questions/19462710/dismissing-a-uidocumentinteractioncontroller-in-some-cases-will-remove-the-prese