Fix js error in custom case exports

P2 bug fix: http://manage.dimagi.com/default.asp?132162#743033
Fixes a problem introduced here: https://github.com/lwyszomi/commcare-hq/commit/c7d05cf12ae5fcc4074e797968419b103bef1695