Fixed no analysis file not opened before trying to write ignored regions bug