Having a constant FCurve doesn't make sense for drivers, even when the user preference is set to have those by default; either linear or Bezier should be used. Since the code is already creating a Bezier curve, I just added the flag to not look at the user preferences in this case.
This fixes T70281.