Prevent recreation of UI resource holder if created with resource ID

Previously, UI resource holder was recreated whenever SetLayerTree was
called. This was problematic as the resource  might be lost depending
on the timing of calling SetLayerTree. With this CL, we no longer
recreate UI resource holder when it was created with a resource ID.

BUG=405232

Review URL: https://codereview.chromium.org/664173002

Cr-Commit-Position: refs/heads/master@{#305104}
3 files changed