readUnsignedNumberMaxDigits can read more than maxDigits chars

...so that is what the std::min was good for that the previous commit erroneously removed.

Change-Id: I0cb08ab79f85ce4b919232845994c9b8bae35646