Redirect standard error output to void

Fixes #7730