Fix crash when using the screwdriver on an unknown node
Reverse and combine if statements in the screwdriver