"Therefore, if you are uncertain whether you have made a blessing before eating, you do not say a berachah just to be on the safe side, for that risks making an unnecessary blessing which would involve invoking God's name in vain - a d'oraita prohibition." (source)