Events: Fix issue where we ignored null relatedTargets

We set the relatedTarget to null in a few cases to work around bugs
in IE, but we ignored null due to the falsey check in the getter.
Merge pull request #410 from arv/related-target-fix-null

Events: Fix issue where we ignored null relatedTargets