BeanNameViewResolver ignores non-View beans

Issue: SPR-12079
Polishing

Issue: SPR-12079