Indeed. There was literally no reason for him to bend the knee at that point, other then to get his dirty end away.
Tormunds comment about the king beyond the wall surely resonated with him and helped him see the bigger picture. Basically do whatever it takes to defeat the nights king.