fix crash on iPad/iOS8 when click share button

Fix the following exception:

Terminating app due to uncaught exception 'NSGenericException', reason: 'UIPopoverPresentationController (<_UIAlertControllerActionSheetRegularPresentationController: 0x7a57ca60>) should have a non-nil sourceView or barButtonItem set before the presentation occurs.'