Often the the shell companies don't actually own the patents, they just license them from the parent company. This way when the shell company loses and goes bankrupt the licenses is automatically revoked and there is nothing left to claim.
Patent trolls might be evil, but unfortunately most of them aren't stupid.