throw Error if data in crosstalk.emit is not an object