Fix bug in folderUnreadCount() binding.

indexFromFolderId can return -1 if folder id is not valid.