fix OOIION-1292 bad reporting of resource commands corresponding to platform agent states
merge upstream/master
Merge pull request #1326 from carueda/2013-09-17_OOIION-1292

fix OOIION-1292 bad reporting of resource commands corresponding to platform agent states