Datepicker: Handle when yearRange is a year or a modifier. Fixed #8994 -...

... Datepicker: next and prev buttons are disabled when using yearRange