Corrects an issue with empty where in's.