Bugfix: notifyReleaseStages was not taken into account

We discovered that regardless of the notifyReleaseStages setting errors were being sent to Bugherd. This fixes that, and I also added some unit tests for this situation.