fix panic with wrong dockercfg file
Merge pull request #2046 from dotcloud/2030-dockercfg_panic_err-fix

- Runtime: fix panic with wrong dockercfg file