Fix hotwiring check being reversed

Fixes #10403
Merge pull request #10404 from DeeUnderscore/fix-hotwire

Fix hotwiring check being reversed