When generating ui schema for an invalid schema: `Cannot read property '0' of undefined`. Should be a nicer message.