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

Fixes #17741.

(cherry picked from commit ce4704766da86485459d9b16514fe7d2e48a6bda)