[515039] avoid throwing exceptions during resource unloading

Bug: 515039
Change-Id: Id3850c64d5f8b8f63217098a7875e90c7eca7563
2 files changed