Throw a RuntimeException if a model instance has been detached from the registry