Avoid crash in ResultUtils