LOL! Yeah, there's little short of the end of the world that could stop politicians from making stupid laws!
The point is, there have been several documented cases where a judge was required by the law to issue a sentence far worse than he actually thought applicable.There's usually an exception for "exceptional circumstances", or indeed much broader discretion, for exactly that reason - and of course stealing a loaf of bread wouldn't be a felony anyway: