[BUGFIX] Fix problem with retreiving domains

The Domain Locator service was selecting all domains, including redirect
domains which we do not need to clear. This was due to an error in an SQL
statement.

Change-Id: I999c73c09edbd6d462b84887da5442d30f407929