ModelNotFoundException to include setter and getter for model name.

PR to 4.1 as per requested (original PR: #2814)