Fix `typeof regexp` issue where Android 2.3 thinks its a function

This addresses a test failure in Android 2.3.