Fix Gurobi mip relative gap error

Fix an error when the bound throw an exception