Don't allow ByteStrings to be repeated a negative number of times. (Fixes #3806)