Fix error on invalid use of torrent event script.