Now handle the case where there is multiple contig id and not one is valid.

Signed-off-by: Pier-Luc Plante <pier-luc.plante.1@ulaval.ca>