NMS-6327, Add check in ISOMLayoutAlgorithm for vertex count