fixes bug 847474 - Runs that don't exist can cause a 500 error, r=Pike