Made DocIndexers less likely to trip over non-input-data files.

For example, if you leave an XSLT file in your input dir, IndexTool
should now warn that this file doesn't contain a document, but shouldn't
crash on it anymore.