Unable to edit rules when explicit hostname contains hyphens

This issue should be fixed with Werk #19885: Fix crash when a predefined condition's unique ID contains a dash. :slight_smile: