fix gnsync bug for some markdown files

Handle case where 'NoneType' object has no attribute 'next_sibling'
Merge pull request #190 from pinko/master

fix gnsync bug for some markdown files