
This script results in a crash because when the first if statement is evaluated to "false", it is skipped, but only to the end of the nested if statement. The loop end instruction therefore doesn't have access to any loop information because no loop has been started.
skip_if_crash.zip