[Datepicker] Fix issue with IDs containing periods

#2849 Datepicker wasn't closing when clicking outside the calendar area due to missing jqescape.