Fix a crash when tapping the share image button on iPads running iOS 8