Fix bug where we encode flags field into all updates on htlc fail