Fix a bug when the pile doesn't have any mail.