Fix potential crash in MapLine::needsTexture