Hey, taking a frame out of the trash is also theft under the law.
Go for it. In fact, you may be safer in the case where it's locked up for a long time. That's abandonment. In Boston if the bike hasn't moved for 60 days, it's called abandoned. Though it really only gives the property owner the right to have the public works dept come take it away.