Fix #643 - Python MindAgents can throw exceptions