[xpcom] Fix signal emission checks to actually iterate through the