Prevent crash in OFF/AMF export caused by non-manifold models (fixes #748).