Fixed totalDirs JS error
Merge pull request #5737 from owncloud/files-totaldirsnotfoundfix

Fixed totalDirs JS error