Don't emit values if output port is disconnected

While playing with math components on a running graph, I get error notifications in the UI because the math components try to send values on ports not yet connected.
Just a simple patch to avoid those warnings.