std.base64: Fix AssertError on certain bad input

This is a continuation of pull request #440, and fixes one more case of the same problem.