Fixed fatal error on pages with no queue (login page especially)