Bug 4797

In order to avoid XSS attack with the domain identifier in the login page, the Domain instance for the passed identifier is fetched. So, in a such situation, the Domain instance doesn't match to any existing domain and the authentication then fails