Datepicker: Added extra checks and renamed an event to prevent the JS errors (partially fixes #4135)
Merge pull request #4139 from pjackson28/fixdatepickeroutsidecheck

Datepicker: Added extra checks and renamed an event to prevent the JS errors (partially fixes #4135)