Limit attempts to render the same thumbnail after failures

bug: 49118
Change-Id: I9379ec445bf2e77bd3b085c00182c5e406ed300d