Fixing broken javascript test on master

Fixing master which is broken after the unintentional merge of https://github.com/Katello/katello/pull/3533.