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

Fixes https://github.com/apocas/dockerode/issues/12