Empty channel menu fix.

We now check if a component has listeners or broadcasts before adding the channel lines and channel menu elements.