Extra check for dealing with nil values.

Without the `if name` bit this would fail when trying to view details of a single object in the dump.