bufferevent_pair: don't call downcast(NULL)
Merge remote-tracking branch 'origin/patches-2.0'