fix for GRAILS-10975: throw primary LinkageError instead of secondary Cl...

...assNotFoundException

I guess the convention is to make a branch named for the JIRA issue, so I am submitting this new pull request and will cancel my previous one.  I based this on the 2.3.x branch last month.