fix out-of-bound bug in filemanager

this should fix https://github.com/koreader/koreader-base/issues/43#issuecomment-22595017