Fixed bug in serialization of Search Conditions

When we hade multiple subconditions concatenated we were storing the
wrong object in the loop…