Fix generating the manual with the recent Djblets change.

Djblets now accepts callables for headers on WebAPIErrors. This updates
the webapi docs builder to support this.
Merge branch 'release-1.7.x'