Bilbo could take advantage of the Elves' preoccupation with the goblins to free the Dwarves himself. The sequence could play out fairly similarly to how it occurs in the book. Bilbo would still be the one who uses his quick thinking and stealth to rescue his friends.