Add guard in container.inspect when evaluating a container for console output