fix global_plex_token and global_settings not being defined in debug function breaking stats page loading