Fix crash on iOS 7 showing action sheet.