PowerNotifier::uninitialize(): check the event dispatcher instance

Avoid a crash on close, by attempting to restore any previous
event filters in case the instance doesn't even exist anymore.