Correctly detect IE11 in the `Environment::agent()` method (see #6378)