fix(agent): Report UnitState only when appropriate

Fix #446
Merge pull request #456 from bcwaldon/446

fix(agent): Report UnitState only when appropriate