fix for JS error when js values are not serialized correctly by kango