The capacitors do not provide a safety function, on the contrary they only increase hazard. They are there purely for EMI/RFI interference reasons - which are important too. If the live and neutral from the inverters have no relationship to ground then any downstream RCD/RCBO/GFCI (USA speak)...