[#1907] Faris - Added test for nil criteria.