fix occasional crash when applying dynamic rules
fix occasional crash when applying dynamic rules

When creating the set of input artifacts we must not include compatible
artifacts that have been created by this rule.
This can e.g. happen for the ["cpp", "hpp"] to ["hpp", "cpp", "unmocable"]
rule and led to occasional crashes in TestBlackbox::track_qobject_change.

Change-Id: I8bf5e8285fa22c8ec89619fb7d3bec60b9797ef0
Reviewed-by: Christian Kandeler <3aa99dcdd3f0cac61fb81c2a11771c0cc2497607@digia.com>

Distrotech/qbs,villytiger/qbs,qt-labs/qbs,gatzka/qt-labs-qbs,villytiger/qbs,gatzka/qt-labs-qbs,qt-labs/qbs,Distrotech/qbs,qt-labs/qbs,qtproject/qt-labs-qbs,qt-labs/qbs,gatzka/qt-labs-qbs,Distrotech/qbs,qt-labs/qbs,qtproject/qt-labs-qbs,qt-labs/qbs,gatzka/qt-labs-qbs,Distrotech/qbs,qtproject/qt-labs-qbs,gatzka/qt-labs-qbs,Distrotech/qbs,villytiger/qbs,qtproject/qt-labs-qbs,qtproject/qt-labs-qbs,villytiger/qbs,villytiger/qbs,Distrotech/qbs,qtproject/qt-labs-qbs,gatzka/qt-labs-qbs,villytiger/qbs,qt-labs/qbs,qtproject/qt-labs-qbs,gatzka/qt-labs-qbs,Distrotech/qbs