Make it easier to debug the release script.
No ticket: boolean -> bool in selector-native
Check nodeType of elements passed to selector-native's find. Fixes #13577.