Fix DOC-421

Broken links should no longer be generated for non-versioned documents.