Fix for the OGR autostyle unit calculation (#5028)