core/misc.hpp: getNext(..): take 'const' pointer to node
Simplified EventManager::applyInvisibleEvents()