Correct check for ViewResolver beans

Check for bean names of type rather than actual beans.

Issue: SPR-12267