I have pull request #29 to handle this a bit differently (instead raising an exception).  Maybe it should be part of this pull request, too.  I will think about whether it is necessary here as well.