[coreboot-gerrit] Change in coreboot[master]: amdfwtool: Check the length of matching string before accessing