fix for GRAILS-10265 "REST: PUT creates a new instance as opposed to updating an existing one"