fixes spring-test mvc htmlunit integration: see https://github.com/spring-projects/spring-test-htmlunit/issues/40