Fix hotwiring check being reversed

This fixes #10403, and restores the intended hotwiring behavior.

(figured I might as well do a pull request for it)