Tweaks for fetch() to handle WP_Error properly without throwing PHP error