Even if Google stopped paying Mozilla, the organization has enough in savings to operate for several years. That’s plenty of time to cut back on spending and find other revenue sources. My only concern would be that they cut back on Firefox development rather than what I would consider a side project.
This begs the question “why did enough people start accepting that it was valuable?”