Make splitLastOutput() work when the current tx has more than one input