GRAILS-11035 - improve domain class command object handling

If a command object is a domain class and there is an id request parameter the value of that parameter is used as an argument to the .get(...) method to retrieve the relevant instance.  This change will skip that step if the String is empty or is "null".