Ok, that was really hard to figure out, but I got it:
If you cut/paste an entity, then copy/paste that ghost, then cut/paste that ghost again, it would sometimes error.
This is because copying a ghost copies it's tags as well, which I use to store the blueprint ID of the ghost.
My code made the assumption that if the ghost had an ID tag, then it must have had connections outside of the blueprint, which was normally true.
The solution was to remove the tag from the ghost upon it's creation, and I can no longer reproduce the behavior.
Fixed in 0.0.2