[libtap] check for error buffers only when necessary

Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>