Prevent "undefined" messages in RPC error log.