fix undefined js_enabled on `iptest —all`
remove redundant js_enabled variable

it’s only False if the js_testgroups list is empty
Merge pull request #5875 from minrk/js_enabled

fix undefined js_enabled on `iptest —all`