Fix NullPointerException at DatabaseCrawlSql.writeXml(DatabaseCrawlSql.j...

...ava:263)