Escape \0 in catalog
BusinessTemplate: do not fail when regenerating roles of a path that no longer exist