Fixed improper check for empty on parent object.
Merge pull request #5 from LAS-IT/feature/fix_mailer

Fixed improper check for empty on parent object.