Minor fix - object check in do_get_object method