Handle OptComponents as connection endpoints
If an OptComponent is used as connection endpoint, and it is not set when an update message arrives, a NullPointerException arises.
This is because the test getX() != null tries to directly access the child, which is not there.
Better use hasX() instead.