SAK-26187 the event watcher should check whether the realmId from the event reference is null or not

git-svn-id: https://source.sakaiproject.org/svn/site-manage/trunk@309538 66ffb92e-73f9-0310-93c1-f5514f145a0a