(Somewhat brutishly) filter out items which have no front-matter.

If the file exists, also check to make sure it has the yaml header.

/cc @madhur @ePirat @alfredxing – does this fix your problem?