preflight check function updated - fix error for unavailable certificate