fix gnsync bug for some markdown files

Handle case where 'NoneType' object has no attribute 'next_sibling'