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

Fixes #19991.