MDL-45445 events: removed unnecessary usage of 'other' courseid variable
MDL-45445 events: added missing 'relateduserid' validation
MDL-45445 events: added missing 'other' validation
MDL-45445 events: documented the additional validation
MDL-45445 events: added '(optional)' to event params where applicable