Plugin update fails to reactivate plugin

In this PR we aim to fix the WPR Plugin which was not reactivating the updated plugin.

The reason for this is because in the last plugin update, we introduced a function undefined warning. 

This fix was tested on two different local sites using a local copy of WP Remote and confirmed to reactivate the plugins.