AIWander Segmentation Fault Fix

Fixes the segmentation fault that used to occur when there was no pathgrid in the cell and a range was passed to AIWander.

Hopefully this will be the last post-merge patch of AIWander until it comes time to update the implementation. Sorry, I clearly did not thoroughly test AIWander before pushing, I won't make that mistake again.