fixed error at ios7.1

https://github.com/VitaliiBlagodir/cordova-plugin-datepicker/issues/10