[kqueue] Fixed segfault

Tester: Artyom A Anikeev <anikeev@ut.mephi.ru>