Added test for thymeleaf/thymeleaf#303