niftyreg-interface: Fixed xor bug in regaverage