Use env->ThrowError in place of AvisynthError.