[ScanSetup] Fix potential BSoD