Are you certain? An empty container carries no liquid, hence the rules applicable to liquids do not apply. Of course a 250ml bottle with about 10% left will fail, as no one at security could estimate what 10% of 250 is.
P.S we regularly take empty bottles in our hand luggage at Swiss airports and some UK airports. They go through in the carry-on and never heard a peep.