If uv_enomem is NULL, return NULL to signal error.