
Extracted `getInstalledApk()` method so that it could be better documented, and makes the `uninstallApk()` more consise. It will now throw an `IllegalStateException` if no apk is found, because as issue #800 shows we will end up with a NPE otherwise. Fixes issue #800.