Fix crashes when the XML parsing fails.
Summary:
This code was dereferencing a null pointer, leading to a repeatable
crash of the kolab resource when parsing an invalid event.
Reviewers: mollekopf, knauss, knauss2
Reviewed By: mollekopf
Differential Revision: https://git.kolab.org/D503