A few quick thoughts concerning rene's comment "why is it a problem".
The main question from a front-end perspective is whether it creates confusion or problems for other users, like whitespace-only file names cause in *nix (it's not clear that there is a file and it interacts badly with the shell command processing).
Most user interaction with SE is through the web site with graphic rendering. Possible issues that come to mind there:
You can not view the user profile because you the whitespace-only user name is not a recognizable click target. The click may even be hard or impossible for zero-width names. (I just saw that such an issue appears with empty answers, see https://meta.stackexchange.com/a/359321/261639. Conceivable with user names in certain contexts as well.) But you can always click on the logo so that there is always a significant surface to click on.
You cannot distinguish between different whitespace-only names. That is perhaps mildly confusing. But generally user names are not unique anyway (which I, by the way, find mightily confusing and a design flaw, not least because I have the common German name Peter Schneider). User names are simply not first class data here.
It is confusing as such (where is the user name? what is this? etc.) Given the relatively clear and consistent layout of posts and the mandatory presence of a user icon I think the degree of confusion is not terrible and more than compensated for by the realization that it is a little smart prank. This assessment is partly based on the assumption that the SE audience is above-average familiar with computer user interfaces.
So I don't think it's terrible.