Adding the result of the query to is_wp_error().

Previously the call to is_wp_error() was not checking for anything. A
parameter with the object to check is required. Resolves #673