Investors put up money in a company so it can be used and pay for resources, mostly for human resources to get the job done. I don't think this is an issue. If you're not there someone else will be and they will get paid.
The issue of founders getting paid, comes up before the company has raised any money. Some founders have a big runway and can go a while without a salary, others cannot. Regardless of who gets paid or not, you need to decide the salary of each founder, based on their role. Keep a record of who gets paid what, and when the company has money, it simply pays the founders that didn't take a salary what is owed to them.