Fix the JavaScript error on tasks page if estimate_date is null.
Fixes https://squish.ish.com.au/tasks/17933