Handle initial unfiltered dates

Adjust conditional so you're not trying to access the length of
a nonexistant date string.