either remove the failure redirect URL in the shipping sever behavior, or add an if statement around the shipping server behavior code.
<?php if($<cartName>->DisplayInfo("TotalWeight") > 0) { ?>
<?php
<shipping erver behavior code>
?>
<?php } ?>
where <cartName> is the name of your eCart object.