Good point. That was a bug. Originally I had an array which has zero value of all forbidden char and non zero else, but I removed it based on the BASE64_dec[] array has same information. Except the 'A' char.
Fixed.

All 0s test and zero length input inserted into the examples.