Prevent extension resources from being deleted. Fixes #2027