Defensively check for pre-resolved FactoryBean.getObject() results in circular reference scenarios

Issue: SPR-11937