[GRAILS-11161] 

Protect from exception in the case of an invalid ID passed in

This will treate a failed conversion the same as getting a null key.