Add support for sending multiple entities (events and states)
Fix empty attributes detection in event_to_proplist