Activity popup crashed on ipad

In my application used Activity popup plugin. It is work on iPod properly but crashed on iPad. The iOS version of my iPad is 7. I used the following tutorial code with some small changes:

https://coronalabs.com/blog/2015/03/17/tutorial-utilizing-the-activity-popup-plugin-ios/  

local isAvailable = native.canShowPopup( "activity" ) if isAvailable then local options = { items = { {type = "string", value = Language.localizedString("Invite message body",{code=mainPlayer.inviteKey}) }}, origin = emailButton.view.contentBounds, permittedArrowDirections={ "up", "down" } } native.showPopup("activity", options) else vLog(Language["Invite Code"], Language["You can't use this feature"], Language["OK"]) end

After press share button the following error is produced:

 *** Terminating app due to uncaught exception ‘NSGenericException’, reason: ‘-[UIPopoverController dealloc] reached while popover is still visible.’***