Check for None value from strftime()