Handle InvalidArgumentException in ClaimHtmlGenerator

see also bug 62495, which is to improve the formatting and make it consistent / reusable by JS

Bug: 62495
Change-Id: I5e623450a4468f9fc31cf7a85b39f6d812723a98
Merge "Handle InvalidArgumentException in ClaimHtmlGenerator"