Android: Fix exception handling in commonAPI calls