ooiion-1356 Clear out agent_config in agent_instance of device extended resource. Add check that agent instance resoiurce is available.
Merge pull request #1411 from MauriceManning/1356_rebase2

ooiion-1356 Clear out agent_config in agent_instance of device extended resource.