Added a check for IsInMap(cell) to missiles

and destroy them when they leave the map boundaries to fix #5582.
Small typo: `GetTerrainType` has been renamed to `GetTerrainInfo`