Fix segfault calling 'pending' (part of the main activations loop)

Signed-off-by: David Scott <dave.scott@eu.citrix.com>
Merge pull request #2 from xapi-project/fix-event-pending

Fix segfault calling 'pending' (part of the main activations loop)