Check args before using it
Check args before using it

fix https://github.com/brave/browser-laptop/issues/11330

Auditors: 0a53ffe01869b4b8ff45b31e15555bf41255d23a@bbondy

brave/electron,brave/electron,brave/electron,brave/muon,brave/muon,brave/muon,brave/electron,brave/electron,brave/muon,brave/muon,brave/muon,brave/electron