Issue #2987939 by Dave Reid, rbayliss: Fixed edge case scenario where xmlsitemap_clear_directory() may accidentally delete the file system. This only happens if the module configuration is removed or deleted before the module is uninstalled.