Scanner: Takes into account that the source may not be selected on all scanners

Signed-off-by: Jerome Flesch <jflesch@gmail.com>