Runs endpoint, ignore endTime if status is Running for program

Currently, /runs endpoint returns run records of program. for a "Running" program we would return endTime as -1, its better to not have endTime for a "Running" program. so this PR is to skip sending endTime for Running programs.