Fix nil date variable

When I use this I get an error about calling #to_time on nil in Mail::Message#filename_for

The included branch introduces a commit with a failing test and another commit fixing the test.