api: Fix error when no extra_encoders is given to negotiate
Some remote api (for instance the scheduler one) does not declare any extra_encoders in the negotiate decorator. This was raising an error when querying any declared endpoint.
(see https://jenkins.softwareheritage.org/job/DSCH/job/tox/349/console)
Migrated from D2691 (view on Phabricator)