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

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