Bug 1105806: Add guards for existence of TypedObject in tests; r=jonco over IRC