Fixed NPE when serializing properties without a definition.