R/metagene.R: Corrected a bug in produce_matrices function that caused analysis to stop when there was multiple regions

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