- Fix getMessages() raising errors when folder is empty