Check whether there are modified fields when updating a registered model (see #6298)