Small fix to legacyResolve which was introduced in Grails 2.1.3

Previously I thought it was introduced in 2.1

see http://jira.grails.org/browse/GPRELEASE-42 for reference