Fix issue with datepicker instantiation on iOS 8.1