Fix 'this.date is undefined' on keyUp/keyDown and empty input (round2)

To reproduce the fixed issue :
 - get a empty input 
 - $("input").datepicker()
 - click on input (picker appears)
 - press keyUp or keyDown
You get on FF :
```
TypeError: this.date is undefined
Line : 964
```

Reproduced on IE11, Chrome and FF