notifyemail: Fix bug that caused duplicate emails to be sent when site was rebuilt.