Fix bug when there was an attachemnt but no content