Handle errors more gracefully if WP_DEBUG is off