Small tweak to prevent email notifications being sent when they shouldn't