Fixes 'undefined token' Javascript error when Sampling is disabled