source-bundle: fix filtering out of non-build elements

Attempting to remove an element from the list being iterated through has undesirable results; fix this by creating a new, filtered list rather than attempting to modify the original list in place.

Merge request reports

Loading