Add missing host-node and host-rhino rules to has.js

Fixes #17741.

(cherry picked from commit ce4704766da86485459d9b16514fe7d2e48a6bda)
(cherry picked from commit fd52c9617a7191983427172335f71b2211db383e)