Fix stack frames display for objects without __dict__ attribute.