Refs #260: Fixes has_child query