Fix setup certs check

Same fix for ezboot.

Fixes a traceback when flash_device_id is not defined.