qcommon: Fix OOB access in CM_EdgePlaneNum without erroring in
CM_GridPlane