Fixed an issue where attempting to reconnect an action or source could lead to the wrong error message being returned in the HTTP API.