retry after JSON parse errors on Docker output (workaround for https://github.com/docker/docker/issues/3631)