Fix issue when getting last run while no run exists