Thank you for reporting this issue. The issue is now resolved and we are aiming to include that in the next XF release (2.0.11).
Change log:
This is mostly a server issue because it's serving its own 404 rather than our own, but it was worthwhile us making a small change in this area in case someone submits the form without a username.