Fix #22 - now gives error on empty mailbox folders and does not crash anymore