Made AgentFactory.boot robust agains null pointers