Update Simplifier.cpp

make sure every geometry contains a primitives or it might crashed when we save the geometry after several times simplify