Use 'if'  instead of 'while' for skipping bytes

currentBit will not be greater than 7, and skipBits will not be greater
than 7, so at most one extra byte needs to be skipped.