We use similar logic when a database has not been refreshed and our loop exceeds the maximum number of retries. We will try to open a non-existent file to force the script to fail and require manual intervention.
If the variables and the Today() function allow the IF test to reach the "load * from ", you may want to change the Today() function parameter. Today() returns last finished data load, Today(1) returns the day of the function call.
Not finding per ctrl + F a certain key-word within the script could mean that this key-word is loaded from an include-variable or might be created from any (variable) logic. If so it's hard to detect it and requires often to use the debugger and going carefully through every part of the script. A shortcut for many scenarios (not all) would be not to search within the script else within the document-log because there the variable-values will be mostly expanded.
Beside this I think the suggestion from jwjackso is right and it's an intentionally failure to break the execution without storing the application and sent the error-message.