Fix generation of com.sun.star.uno.[Runtime]Exception classes

Change-Id: If9bd4d906906e0e6cd7c5bb61f8a67a163218395
(cherry picked from commit 662e3299c578e2bff8a1cb9884e6266353ea1ebe)