Fixes #3794: "disable-agent" feature does not work as expected (doesn't ...

http://www.rudder-project.org/redmine/issues/3794