MDL-39846 rename the $object var to match the property name

Thanks Fred again.