misc.misc.get_languages() may try to list a non-existent directory.