Filter deleted resources from the files passed to zinc.

Fixed #1002070