Fixed an NPE in DatePicker

Change-Id: I9e65dc81c4c6c90d7d0d94578f137bbda9b6ae11