clear element when model is undefined or null

If model changes to undefined or null, element.val(""), but datepicker shows up around the current date.