Fixes #5816: AgentType is now correctly initialized

And does not throw NullPointerException anymore
Merge pull request #52 from VinceMacBuche/bug_5816/agentType_null_pointer_exception

Fixes #5816: AgentType is now correctly initialized
Merge branch 'branches/rudder/2.10' into branches/rudder/2.11