Check for `WP_Error` before using `$info` as an array

`$info` can be a `WP_Error` if something went wrong with the
connection…we must handle that condition.

Probably need a better way to surface these errors at the time they
happen, rather than letting them get stored here, but this is at least
a failsafe to prevent fatals.