Only insert links to pdfs if we are actually generating these. This should
silence most warnings in the html only small build on travis
Merge pull request #3530 from jenshnielsen/travis_docs

BUG : Only insert links to pdfs if we are actually generating these.