[GEOT-4911]: Fixing coordinateAxis checks-backport to 12.x