ignore non-existing element while adding listeners to element