tevent: unify handling of HAS_EVENT and REPORT_ERROR in epoll_{add,mod,del}_event()