Fix for MIMEEntity.getAncestorDocument to account for child entities