Fixed a bug when using a selector for attribute existence.