Modified setInput method of base GATE class to avoid duplicating the connection