`action_fcurve_ensure` can be passed a nullptr for the PointerRNA, which the function didn't check for after the refactor.