Fix an invalid material access.

Don't attempt to draw the material properties panel when there's no
material active (eg, on a mesh collider).
Better handling of the collider tangents issue.

Rather than not writing tangets when there's no material, just skip any
triangles that produce a cross product of 0. Still missing 6k of data, but
that might be because I'm not writing uv2.