Added an extra error checking flag for the case where we expect the number of nodes on the stitched surface IDs to match