The embattled electric automaker could be on the cusp of a rebound.