Fix to sampling profiler when memory is turned off.

Test Plan: Load the homepage with sampling profiler, with and without memory sampling.

Reviewers: alan

Reviewed By: alan

Differential Revision: http://phabricator.khanacademy.org/D10850