The rule of not using any articles with uncountable nouns applies only to the indefinite articles (unbestimmte Artikel), that is "ein / eine / etc.".
Thus you cannot say "Ich möchte ein Mehl kaufen". You have to say "Ich möchte eine Packung Mehl kaufen. / Ich möchte 1kg Mehl kaufen. / Ich möchte Mehl kaufen. / ..."
But, as DonHolgo said, you can ask "Wo ist das Mehl?". Or "Kannst du mir bitte das Mehl geben? / Das Mehl ist alle."
Very often, however, you say "Mehl" without any article, e.g. "Ich brauche Mehl für den Kuchen."