model: Fix regression in Content.to_dict
A Content
object with no attached data
or get_data
function could
no longer be converted to a dict as MissingData
exception was raised.
See some errors reported in https://jenkins.softwareheritage.org/job/DENV/job/tests/285/.