Fix #9771 (fix rendering of layers with geographical CRS with OTF on)