Filter invalid children from union operations.

MSP-9277

Filter invalid children before adding them to
Metasploit::Model::Search::Operation:Union#children so that invalid
children won't stop the union from validating, which can cause
deprecated operators to fail.

(cherry picked from commit abb187e)