Prevent patient out of fence email spam.
Moved last outside check.
Merge pull request #25 from knotsoftware/email-improvements

Prevent patient out of fence email spam.