Avoid [UIViewController dismissModalViewControllerAnimated:] when target for iOS6