Bug fix mark dufresne

Simple check for undefined/null to address an error that occurs when materials are removed from THREE.MeshFaceMaterial's array but buffer.materialIndex hasn't been updated.