LPS-33860 Do not delete templates referenced by web contents