Fixed nil pointer exception when creating a new goal and the end date is blank