BeanNameViewResolver ignores non-View beans

Issue: SPR-12079
(cherry picked from commit 626a5fe)
Polishing

Issue: SPR-12079
(cherry picked from commit 92bd240)