Fix bug with title extraction during export when first line is headline.