Avoid a PHP notice in list_plugin_updates() if plugins_api() returned a WP_Error object.

fixes #29583.

git-svn-id: https://develop.svn.wordpress.org/trunk@29825 602fd350-edb4-49c9-b593-d223f7449a82