When throwing an error, I see the following

Which is due to code in $utils.stringifyActual(subject)
Debugging this I see an empty jQuery element.

We can definitely report a better message instead of {}
I will create a better reproducible example, right now this happens inside a custom command