Fixed bug with PHP notices being generated while building site map.