Hm, I think I get what you mean here but unfortunately there's no real way to redirect here because when you access the dashboard area, it's for guests and I don't really see why you want to do throw 404 error though?
There's no work around currently unfortunately because there's just too many possibilities of query string I will see what can be done for this but I don't think there's an easy work around though