don't use is_wp_error() in error_to_string()

We want to be able to use it without WP being installed.