cli: fix traceback on recursive remove
cli: fix traceback on recursive remove

We perform a query to retrieve the affected prefixes if we are
performing a recursive query but it wouldn't get called in time under
certain scenarios. By moving the query a tad earlier in the code we make
sure that we always have the result we need.

Fixes #670.

ettrig/NIPAP,ettrig/NIPAP,SoundGoof/NIPAP,plajjan/NIPAP,SoundGoof/NIPAP,garberg/NIPAP,ettrig/NIPAP,garberg/NIPAP,bbaja42/NIPAP,SoundGoof/NIPAP,garberg/NIPAP,SpriteLink/NIPAP,SpriteLink/NIPAP,SpriteLink/NIPAP,fredsod/NIPAP,bbaja42/NIPAP,SpriteLink/NIPAP,bbaja42/NIPAP,bbaja42/NIPAP,ettrig/NIPAP,fredsod/NIPAP,SpriteLink/NIPAP,fredsod/NIPAP,plajjan/NIPAP,fredsod/NIPAP,ettrig/NIPAP,plajjan/NIPAP,fredsod/NIPAP,SpriteLink/NIPAP,garberg/NIPAP,SoundGoof/NIPAP,plajjan/NIPAP,SoundGoof/NIPAP,bbaja42/NIPAP,garberg/NIPAP,SoundGoof/NIPAP,fredsod/NIPAP,bbaja42/NIPAP,ettrig/NIPAP,plajjan/NIPAP,plajjan/NIPAP,garberg/NIPAP