Handle closed channel without bogus vars
Merge pull request #389 from Joushou/dorender

Handle closed channel without bogus vars