Raised a more significant error when accessing a model with a deleted definition.
Removed a stray line.
Make sure children opts related cache is also cleared.