Allows the user to pass null as the second or third parameter to signrawtransaction, in case you need to (for example) fetch private keys from the wallet but want to specify the hash type.
(As discussed with @gmaxwell in IRC while testing the signrawtransaction ... SINGLE fix)