Add bounds checks to ntreg to stop crashing in corrupt hives
Remove unnecessary double parentheses