Fix handling of non-callable event listeners, fixes #7229
Fix handling of non-callable event listeners, fixes #7229

nicolas-grekas/composer,fabpot/composer,stefangr/composer,johnstevenson/composer,floverdevel/composer,stof/composer,composer/composer,pierredup/composer,vdm-io/composer,andrerom/composer,staabm/composer,alcohol/composer,milleruk/composer,slbmeh/composer,naderman/composer,localheinz/composer