[coreboot-gerrit] Change in coreboot[master]: device: Add checks for NULL in device_const.c functions