made the dependency on an event dispatcher optional (follow-up to a3b3d86929a2a1a133560b11a39b4f8ff038373b and d225817bbae89ecd754e10111f2a662991638a29)