がなかったので

because there was no

→ が
phrase Uncommon #11,575
because there was no Follows a noun to give a reason: nounがなかったので means “because there was no noun” or “because [someone] did not have noun.” The ending ので means “because” or “since.”
JA: 時間がなかったので、宿題を終えられませんでした。
EN: Because I didn't have time, I couldn't finish my homework.

直行便がなかったのでやむを得ず北京経由で行った

There was no direct flight, so I had no choice but to go via Beijing.

その会議はどちらの側に同意の見込みがなかったので中止された

The meeting was called off because neither side seemed likely to agree.

から連絡がなかったので心配しました

I was worried because I hadn’t heard from my mother.

彼はがなかったので失敗した

He failed because he had no money.

異議がなかったので彼らはその計画を進めた

Since there were no objections, they proceeded with the plan.

彼らはがなかったので町へ急いで戻った

They hurried back to town because they didn't have any time to spare.

タクシーがなかったので私達は歩いて帰った

There were no taxis, so we walked home.