Add null check for triangulated mesh.