Issue #2341023 by eshta: Clear registry cache after agent activation to allow new class loading.