404 (and other 40*HTTP )errors were returning and index out of range, now they return InvalidUrl to be more aligned with the used exceptions
in the normal flow, there were cases where the method would break with TypeError: string indices must be integers and this was due to a broken parsing, I made it safer to parse in case some data is not present
This PR fixes 2 errors:
TypeError: string indices must be integers
and this was due to a broken parsing, I made it safer to parse in case some data is not present