Fixed bug#10113 - Management dashboard setting doesn't show up when agent only has RO on stats.
Code cleanup.