Fixed script crash

do not execute scripts with compile errors anymore