I reckon you did the right thing. It's human nature to help those in need (well for most anyway) and I'm a firm believer of what comes around goes around, were all going to need a hand a some point in time.
When you say in an unsafe manner I'm sure that it was undertaken as safe as possible given the circumstances which you were presented with which sounded less than ideal for a number of reasons. The fact you mentioned it means that thought was put into the situation and steps taken to alleviate risk as much as possible by the sounds of it to me, without getting too much into the nitty gritty of it all.