Consistently check for failure from evbuffer_pullup()

Closes issue #148.
Merge remote-tracking branch 'origin/patches-2.0'