That error means that it couldn't find the recordset you originally used when applying the server behavior, so you have to select the recordset again.
You could also manually add the shipping on line 112 it should look something like:
$muirhead_itemchargeShipping = floatval("".$row_rsATC['shipping'] ."");