Fixed 'No such property: klass' error

See here: http://jira.grails.org/browse/GPREST-6