clear element when model is undefined or null

If model changes to `undefined` or `null`, `element.val("")` is set, and datepicker stills shows up around the current date.