1.0.5: fix fatal in the agent form (typed $moduleHandler) from 1.0.4