Handled the case where the timeline returns empty in tasks.py