bufferevent_pair: don't call downcast(NULL)