Fixed bug with emails not being sent when not associated with an issue