Avoid computing distance to CAD when detecting bad elements in HighOrderMeshOptimizer if optCAD is not enabled