Don't fail on subkey-only imports.

This is a port of this commit:
https://github.com/mikecardwell/android-privacy-guard/commit/688ebb822970635b6c7cb3eed464f245a5b78275