Do not use link difficulty if chaininfo unset

Fixes #336