Fixes empty "properties" collection.

When using an event-context variable, the properties collection was
empty, even when property items where explicitly given. This function
fixes this.