Fix Measurer.toJSON to work when there is no protractor.
Fix Measurer.toJSON to work when there is no protractor.

Test Plan:
Score a Measurer question successfully in test.html with protractor hidden.

Auditors: jack

ariabuckles/perseus,learningequality/perseus,sachgits/perseus,junyiacademy/perseus,daukantas/perseus,ariabuckles/perseus,ariabuckles/perseus,daukantas/perseus,alexristich/perseus,iamchenxin/perseus,huangins/perseus,sachgits/perseus,chirilo/perseus,alexristich/perseus,chirilo/perseus,abe4mvp/perseus,ariabuckles/perseus,learningequality/perseus,iamchenxin/perseus,huangins/perseus,junyiacademy/perseus,abe4mvp/perseus