Add exception when context doesn't contain a model during execution