Work around T222159
WikibaseMediaInfo incorrectly serializes empty statements as the empty
array instead of the empty object, causing an error in our code because
we can’t get P180 statements (or default ) from a list in Python. Work
around this by replacing the empty list with an empty object.
This bug, which affected any entity that was not missing but had no
statements – i. e., any file with captions but not statements  – was
reported by Olaf Janssen on Twitter .