[coreboot-gerrit] Change in em100[master]: Run closedir() only if opendir() succeeded