JIRA: https://jira.spring.io/browse/INT-3848 When the `ConsumerEndpointFactoryBean` is created programmatically the `beanName` property may be missed and the `catch` for the `NPE` just hides an issue with the `DEBUG` log message. Add check for the `null` on the `bean` and log the issue on ERROR level. **Cherry-pick to the 4.1.x, 4.0.x and 3.0.x**