Fixed NPE when due date and closing date are not set.