Fixed the parsing of dates and numbers to avoid exceptions

It is not very useful to get an exception every time an endpoint
doesn't return all the required data.