Typeof returns a string, so compare against that.

Test Plan:
Observe that testrender.html is no longer broken.

Auditors: emily