Handle empty OC.webroot case
More sane events usage