make bufferevent_getwatermark api more robust

the result will not be undefined when this api return 0