pytest_plugin: Deal with the case when ctime is dropped
This fixes the future build failure following the swh.model tag 0.6.6 ({Content, SkippedContent}.to_dict drops ctime key when that value is None)
Test Plan
tox
Migrated from D3739 (view on Phabricator)