Fix unavailable iOS 6 API crash