Fix document access from version page, documents' tab.

Corrects an issue on this specific page: when clicking on a file with a path on it, the languages' list does not get updated with the available languages.