Make sure overridden resources are only used if the original resource is...

... referenced