Fix stats shortcode to run for both logged-in and logged-out users.