NPC._convertFieldValue falls back from a few simple types to checking className property, but fails to first confirm a) that the value is an object b) that is has the className property.
I think the issue came up in some code when NPCSchemaField.defaultEmpty returned null, which doesn't fit any of the branches in _convertFieldValue.