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.
Merge pull request #565 from zanata/doclist

Fix document access from version page, documents' tab.