Fix infinite loop bug introduced with iOS 10 which happens when the current view controller is a UIImagePickerController.
Fix infinite loop bug introduced with iOS 10 which happens when the current view controller is a UIImagePickerController.

infinitered/rmq,infinitered/rmq,infinitered/rmq,infinitered/rmq