It is true that you cannot take the square root of a negative number, but you need to remember that the domain is the set of all possible values of the input x. The set is missing something.