nipapd: fix 0 update
nipapd: fix 0 update

We would get an exception when 0 objects were updated by a query due to
a bug in this code which is now being handled.

Fixes #843.

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