Fix range check for cm_patch.c borderPlanes

Hard error because it means max border planes needs to be increased,
probably a bad idea.

Found by Coverity.