Bugs in "nside2npix" fixed.

There were a few logical errors, as well as a couple of syntax errors,
in the previous commit that have now been fixed.