Fix NullPointerException at DatabaseCrawlSql.writeXml(DatabaseCrawlSql.java:263)