Fix compiler error with -fno-exceptions. am: 5b1ea9b3fc

Original change: https://android-review.googlesource.com/c/platform/external/openscreen/+/1558661

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I5842256fb9d988fd65b9e44bea6d4437e082390a