Adding a "copublish" method.

This method is used to publish unfinished, shared events.
Filter out undefined values in handlers array.