title: Contract throws Invalid address when using send() function in solidity 0.4.6
body: <p>This is the solidity code that I am trying. Compiling of the code works fine. However, when I call the function send() via javascript it throws exception : throw new Error('invalid address');</p>
  
  <pre><code>pragma solidity ^0.4.6; 
  contract Agreement {
     address owner;
     address seller; 
     uint amount; 
  
     function Agreement(address _seller,uint _amount) {
       owner = msg.sender; seller=_seller; amount=_amount;
     } 
  
     function send(){
      if (owner.balance &lt; amount) throw;      
      if (seller.balance + amount &lt; seller.balance) throw;
      if(!seller.send(amount))throw;
      } 
  }
  </code></pre>
  
  <p>This is the javascript code</p>
  
  <pre><code>var compiled = web3.eth.compile.solidity(contractRaw);
  var contract = web3.eth.contract(compiled.info.abiDefinition);
  var nContract = contract.new('0x61e323dcf5e116597d96558a91601f94b1f80396',web3.toWei(10, "ether"),{from:this.web3.eth.coinbase, data: compiled.code, gas: 380000}, function(e, contractDetails){
          if(!e) {
  
              if(!contractDetails.address) {
                  console.log("Contract transaction send: TransactionHash: " + contractDetails.transactionHash + " waiting to be mined...");
  
              } else {
                  console.log("Contract mined! Address: " + contractDetails.address);
                  console.log(contractDetails.send())
  
              }
  
          }
      });
  </code></pre>
  
  <p>Whenever the code runs, it throws invalid address error and crashes.</p>