I think he'd have seen less potential revenue and a lot more potential cost, plus there was little he could do to help them at that point.
@BMWurm's comment points out that Griphook had no reason to believe that Harry's actions would end up benefiting goblins. Certainly Griphook had little trust in wizards in general, he saw them them as arrogant and disdainful of other races. He called Harry a very unusual wizard when he saw that he was capable of caring for non-humans, but that still didn't prove Harry could do anything to help goblins.
Griphook was also short of information because Harry only told him the bare minimum about the plan and his reasons for it. This was a calculated risk on the part of Harry, Hermione and Ron: The more Griphook knew, the more danger if he either turned against them or was made to tell others what he knew, and Harry had been warned by Dumbledore not to tell anyone else about the horcrux hunt. Even Ron's brother, who housed them as they planned the escapade, didn't get to know what they were doing.
Griphook only agreed to help on condition of being given the Sword of Gryffindor, suggesting that he wasn't convinced the plan itself was worthwhile.
When he left them the plan was falling apart and the only exit was blocked by angry goblins. Riding the dragon out of the bank was an act of desperation that they probably hadn't thought of at that point, so from Griphook's viewpoint there was no escape for the three humans. There was also little he could do to help them beyond showing solidarity by staying with them.
I can't say whether he would have risked himself for them if he thought it would help, but I doubt he could have helped if he wanted to. The cost of staying with them probably included being subjected to summary goblin justice, administered by goblins who'd see him as a traitor to his former colleagues, but by leaving he had a chance to save himself and the sword.