date-chooser : added bounds checking

Gnome calendar crashes when changing the date-seclector/date-chooser view from
a month with high number of day to one with lower number of days (example March
to February) when the selected day in the previous month is not found.

We have now introduce a bounds checking to ensure that the selected day number
in the previous month is found in the new month. And if it is not found we
should assigned it a closest number.

GNOME/gnome-calendar#212
4 jobs for debug in 23 minutes and 45 seconds (queued for 3 seconds)
latest
Status Job ID Name Coverage
  Build
passed #11826
build

00:10:19

passed #11827
install

00:05:16

 
  Test
passed #12052
test

00:13:25

failed #11828
test

00:00:33