AMBARI-6196 js errors occur when refreshing service page. (ababiichuk)