fixes #11082 , only export excel when under 5000 records.