vrend: Clean error state before querying the features
We don't know whether the caller cleans up the error states they are responsible for, so do this here. This is needed to correctly query some features, because otherwise checks that rely on correct error reporting might give the wrong result.
Closes #148 (closed)