issue#19 : Fix minDate/maxDate issue

For more information : https://github.com/angular-ui/ui-date/issues/19

I don't really know why, but this code update fix the problem of date selection when a minDate or maxDate is set.