bugfix: email notification template appeared when no "email" type layers
were in the queue.