cleaning up the interval model a bit before wemake a new or update an existing. Also add some conditional logic to the mailer to avoid a nil error for missing goals.