Allow reloading a script even if opening it failed

Makes it easier to try opening it again after fixing the problem.