Fix crashing bug when launching app on pre-iOS 8