relay: fix invalid nick events crashing connection

* fixes tilal6991/HoloIRC#72