Added checks for cases where transfers don't have a next stop (e.g., 42nd street)