get_all_potential_task_ids_from_mr: Handle missing last_commit
It is possible for a merge request to be created without any
associated commits (for example if the source branch does not exist
yet). This is a normal scenario for merge requests created by
GerritLab, so handle it gracefully.