Print a friendly error for the if-let construct without an else block

Fixes #19991.
Please add a comment saying what the test is testing.