Check for EventSource before registering handlers.