Add another sanity check to avoid attempted merging of selectors with different numbers of levels.