Fixed issue #47: undefined hoveredTerrain error.