[AGIPD][CORRECT] Suppress lit-pixel counter warnings if it is disabled
Description
This fixes unexpected warnings by estimation lit-pixel threshold only if the lit-pixel counting is enabled.
Relevant Documents (optional)
Types of changes
- Bug fix (non-breaking change which fixes an issue)