Fixed logic for updating/removing content package resources.