Check appraisalStep before fetching emailType

EV-147

The getEmailType method wasn't checking whether or not the
appraisalStep object was null before fetching the emailType.