Fix a segfault when using the Analogue Channel scanner. Fixes #11202