Fixed an issue with .not("#foo, bar") not working correctly, closes #3757.