Sections 23301, 23301.5, and 23775 shall apply to a foreign taxpayer only if the taxpayer is qualified to do business in California. A taxpayer that is required under Section 2105 of the Corporations Code to qualify to do business shall not be deemed to have qualified to do business for purposes of this article unless the taxpayer has in fact qualified with the Secretary of State.