SONARJAVA-301 Do not fail with ClassCastException when multiple paths are given