Fixed bug in logic used to limit the data retrieved

* Pevious logic was not taking into account the case in which the limit was high enough for the Request to retrieve the whole page. When this is the case, the $result variable contains "true" (boolean), and the actual content must be retrieved from Request::retrieved_data property.