I'd consider that autonomous vehicles should apply the brakes if they find themselves in an uncertain situation as reducing speed is going to minimise any impact. However, this was being driven acoustically and the handbrake shouldn't have been applied automatically by the power running out. At the worst, if a handbrake fails and can't be used, you can always shove a couple of bricks under the wheels to stop the vehicle rolling.