Fix bug when scanning invalid APKs and add a test for it

1 job for invalid-apk-fix in 34 minutes and 51 seconds
Status Job ID Name Coverage
  Test
passed #13555309
test

00:34:51