check for NoneType on the date filter