If the web application type is set via properties, it is available only after binding. The environment needs to be converted to the appropriate type if it does not match. If a custom environment is set, it is not converted. Fixes gh-13977