Fix: fix a bug occuring when reading RIF with no input or no output

2 jobs for 1.49.2 in 3 minutes and 51 seconds
latest
Status Name Job ID Coverage
  Build
passed build_and_test #87769

00:01:37

 
  Test
passed test_opam_test #87770

00:02:13