Handle InvalidArgumentException in ClaimHtmlGenerator

Bug: 61915
Change-Id: I5e623450a4468f9fc31cf7a85b39f6d812723a98
Merge "Handle InvalidArgumentException in ClaimHtmlGenerator" into mw1.23-wmf15