Add @ConditionalOnBean to Thymeleaf dialect beans

Fixes gh-1507