Event polling is disabled when the event bar is not part of the layout

(currently this is the case for the login page).