Revert "coverity#1224993 Uncaught exception"

This reverts commit b66a96d792e9ef8022547f835ed4633c8e7f4c10,
follow-up commit will fix w/o breaking JunitTest_framework_unoapi.

Change-Id: Iac12d52c2eb9a1e4ab09d24910cee1838cc7d883
Fix coverity#1224993 w/o breaking JunitTest_framework_unoapi

Change-Id: Iefa1d79c52c4f951a7a66be98de3c9752bf89daf