Added an error if the agent ID is undefined
Merge pull request #10 from deathbearbrown/agent-error

Added an error if the agent ID is undefined