Fix bug in Client.GetPageID method

The API returns a page object with the key "-1" if it cannot find the
page. Detect this and return an error if it happens.