Checks for an exception

If l is bigger than _tileObjects.length then there is an exception when trying to access the null tile. (In row 602) The user also must be warned about the error, because probably he haven't supplied the correct Tile or Range parameter.
Merge pull request #1289 from SergioB/patch-4

Checks for an exception