Asserts that objects are not nil before getting their ids (test still fails with ruby1.9.3).
Authored by: jplang 2011-12-15
Parent: [r8232]
Child: [r8234]