CAMEL-6057: Fix for accessing beans from parent context by type