improved exception handling in iteration over all loaded classes

Change-Id: Icebf94c8edce9d5944956e14a694b91aeceac9e2
Signed-off-by: Alexander Wert <alexander.wert@sap.com>