This is my understanding, too. Sorry if that wasn't clear in my earlier comment.
However, I also believe that unenforceable parts of a contract have no effect, except in the minds of the parties to that contract. My suspicion is that contracts are sometimes drafted with this in mind.
Edit: in other words, you're not legally bound to unlawful parts of a contract.