Fixed NSCalendar warning with nil date.