corrected triggerEvent, if no data is passed as arguments to the webapp, fixes #5