Consistently check for failure from evbuffer_pullup()

Closes issue #148.