Simplifying plate::selectCollisionSegment
Removing unnecessary checks on the return type of plate::getMapIndex