Movement to tiles out of map is blocked

Fixes crash when checking possible movements near map edges
Merge pull request #654 from cfailde/isBlockedFix

Movement to tiles out of map is blocked