Make sure we don't crash while doing class or tag selections by preventing Array.push calls with more than 50000 arguments.