Changes to avoid errors when call the chamilo webservice