Enables 'links' when reloading document

If a document without links is reloaded as a
document with links, the 'link' option in the
sidebar should be enabled. Fixes bug:
https://bugzilla.gnome.org/show_bug.cgi?id=628617

Moreover, if a document with links is reloaded as
a document without links, then 'links' should be
disabled *and* the sidebar page should not be the
'links' one.
Debug printing for search of ordinals. Report to poppler.
Commenting out the debug printing.