Good catch!  I wrote a test for this in 0c797cce701c34046aa0ffcf1dcf93b750f3e398