fixes the null exception on date humanize