Fix (and test) panic when our counterparty uses a bogus funding tx