Only compare _WeakRef with another WeakRef

Change-Id: Ieca252f607f1221d322dd74967e24303ccb212fd