Fixed NullPointerException in XMLBuilder

Fix for NPE introduced in https://github.com/boundlessgeo/geowebcache/commit/02d82baeae0cc11b589836ef857a1689a8f60a9b