[GEOT-4911]: Fixing coordinateAxis checks- Backport to 11.x

[GEOT-4911]: Backport to 11.x