Added assert on ref count of referenced object, as this object is assumed to be released in the destructor
p4#: 20827