Skip resources providers at template unload

When unloading a template, its resources are also unloaded. When resources are coming from a provider, an error was raised.
The fix consists in skipping those types of resources.