Fix crash on iOS 6 and 6.1 due to method not yet available