Fix PerfdataWriter config validation.

Fixes #6255