Potential fix for weak reference crashes on earlier versions of OS X.