CSPACE-6042: Avoid returning null as a toString() value from InvocationError.