The former President's surprise bid might encourage reformists to get behind flailing President Hassan Rouhani.