Check whether any events have actually been received before trying to parse them.
Fixes #98