Apply correction from Openlayers#1163

https://github.com/openlayers/openlayers/pull/1163