Fix showing empty Object Hierarchy

Don't add a newline and then check for an empty string.