Added function to get shipment by name

If two or more shipments have no name, it will overwrite in the
shipByName table. Adding the name var to the validShipment check will
fix this.