Fix issue that would not allow any characters if the maxLength was set to 0