Fix case where an error while loading a compiled file would not set the flag for a failed loading file operation