Fix crash for M2s with no vertices