Fix errors in computing HMMM timeout
Fix errors in computing HMMM timeout

* If there are no test cases, we previously got an error. That has been
  fixed.
* If there was no timeout provided, we previously got an error. That has
  been fixed.

CSGreater-Developers/HMC-Grader,CSGreater-Developers/HMC-Grader,CSGreater-Developers/HMC-Grader,CSGreater-Developers/HMC-Grader,CSGreater-Developers/HMC-Grader