Core: Fix check in EventMap::IsInPhase