Fix twosigma/beaker-notebook#684, handle truncated gist
Merge pull request #19 from twosigma/alee/fix-bk-684

Fix twosigma/beaker-notebook#684, handle truncated gist