Fixed total dirs/files message hiding condition

Fixes JavaScript exception: Cannot call method 'charAt' of undefined (filelist.js) [#5829]