fix agent stall when also using web argument
refactor valid_caller? into autorun?
Merge pull request #1212 from colinsurprenant/agent_stall

fix agent stall when also using web argument