19751 - Fix and centralize handling of boolean values for settings

maint: fix activate agent logic