Fixed crashing bug with getNeighborsND (wrapAround=true case)

Fixes https://github.com/numenta/nupic.core/issues/125

@scottpurdy 
No idea why they were doing that. However, this code path didn't work when radius was large, so I'm not sure it was correctly tested to begin with.