Before this change, an attempt to save a model instance with a dynamic
property to a MySQL datasource crashed the application.
This commit fixes the implementation of `id(model, property)` to
correctly handle the case when the property is not described in the
model definition.