When trying to upgrade Wikibase I sometimes get errors like this:
00:06:28.377 [chrome-headless-shell 120.0.6099.224 linux #0-6] Cannot read properties of undefined (reading 'id') 00:06:28.377 [chrome-headless-shell 120.0.6099.224 linux #0-6] TypeError: Cannot read properties of undefined (reading 'id') 00:06:28.377 [chrome-headless-shell 120.0.6099.224 linux #0-6] at WikibaseApi.createItem (file:///workspace/src/extensions/Wikibase/node_modules/wdio-wikibase/wikibase.api.js:70:26)
The problem is that when there's an error from the MW API, we just parse the JSON and return what we have. Before we rejected the promise with an error message. Lets make sure core do that (and log the actual error).
