fix handling of http exception (fix ros-infrastructure/buildfarm#152)