idToString
Helper method to render an ID as a string, for debugging
Returns the string (null) if the id is null. Otherwise, returns a string representation for debugging. Never throws an exception. The returned string may indicate if the id is definitely invalid.