Make metadata identification less greedy, and use the first node as heading if it is a header and there is no other header available