Add the testcase from PR13573, this used to crash.

The error is a bit strange tbh, but better than crashing.