This fixes a bug in the Condor Plugin
Also add some comments and change error logging information (It is debugging instead, not really an error)
Merge pull request #5305 from lucacopa/change_state_bug

This fixes a bug in the Condor Plugin