fixed erlydtl_filters:escapejs so that it won't error out on bad values