Checkmk Werk 10045: Fix possible "variable referenced before assignment" during bulk discovery