fix Empty QueryParts in and/or queries during rendering