klawson88/MDAG — pull request #1 by jacobgreenleaf (2014-02-10 20:40:47+00:00)
Title: Handle the empty collection

If you don't do this, then an empty collection triggers an out of bounds exception at line 1 of `replaceOrRegister`.