Prevent weakreference calls from failing
Merge pull request #9 from malini/fixweakref

Prevent weakreference calls from failing