Bugfix empty emails

Solved the bug wich caused that empty emails were sent at pageload