Handle NULL dates, fixes #91.