**Steps to replicate the issue** (include links if applicable):
* in a Wikibase Cloud instance, create a property Y with datatype quantity and two items X and Z (potentially both can be empty)
* open the QuickStatements of this Wikibase Cloud instance and start a batch with one command, trying to add to item X the property Y with value 1 and unity of measurement Z
**What happens?**:
* the command results in an error; hovering on the error the message "Illegal value: _URI of the unity of measurement Z_" is displayed
**What should have happened instead?**:
* the command should be executed correctly, resulting in one edit to the item X adding the property Y with value 1 and unity of measurement Z
**Software version** (on `Special:Version` page; skip for WMF-hosted wikis like Wikipedia):
**Other information** (browser name/version, screenshots, etc.):