How can I validate with IF Block when MySQL Node returns nothing?

In your example the “Always Output Data” option appears to be disabled (which was previously enabled as per your screenshot further up):

That’s be why the workflow doesn’t continue here.