Do not use link difficulty if chaininfo unset

Fixes #336
Merge pull request #345 from TheSerapher/issue-336

Do not use link difficulty if chaininfo unset