Improve docs2harvest.

Summary:
 - fix crash when correctly parsing documents without math
 - improve xpath to retrieve math regardless of MathML prefix
 - improve log and error messages

Test Plan: bin/docs2harvest test/data/*

Reviewers: radu.hambasan

Differential Revision: http://phab.code4fun.de/D53