Prevent a KeyError when there's no link headers
Merge pull request #1355 from sigmavirus24/fix_links

Prevent a KeyError when there's no link headers