Prevent HTML errors being spewed for CLI.