bug fix: when analysis or run does not exist

fixed a bug that an exception is thrown when run or analysis is not found