Fix an issue when in some cases, toStringID() may not be existing on the object.