Fixing build error when plugin inherited from android used

We are using DexGuard plugin, which replaces android. The check hasPlugin doesn't work in that case, although DexGuard plugin can do all the things that android can.