Prevent TypeError when config properties are undefined by using optional chaining and default values in publishMiningConfigUpdated. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>