Set the selected date to the passed in date

Set the selected date to the passed in date
by moving the monthPicker.setValue(date); out the null
check

issue A24Group/Triage#2038