Fix #266: Do not replace pseudo selectors when they appear inside :not clause