Clean up error for claim index out of bounds

This changes the uncaught exception to an actual
api UsageException to be provided to users

This change also adds a test for the bug into the
wbsetclaim tests

Bug: 58394
Change-Id: Id143b62696b2e324d28c5b384c025c7ce835ce1c