search_encode: Fixed a bug where files where included even if they were not part of main experiments

Signed-off-by: Charles Joly Beauparlant <Charles.Joly-Beauparlant@crchul.ulaval.ca>