BUG Fix Zernike moments computation

One code path may it possible to get division by zero and NaNs in the
output.

Reported by Sergey Demurin.