Update bufferevent_pair.c

null check added for buffer event pointer