Reverts this back to what it was before #21869
In that PR, we allow returning undefined from render. The test was updated (stupidly, by me) to just pass. But the test is to confirm arguments are serialized correctly, so the right fix is to change it to an error that includes arguments.
I've chosen rendering an object as the error.