Fix for DateSelect element, where dayElement was initialized after setting options for dayElement

Fix for issue #4579