Fix return value of folderIdToInt().