Run weight_obj in EndPath in case it does not get run anywhere else (can happen e.g. with prepended vetos).