Bugfix so it can be used as an UIActivity's activityViewController.