Search and harvest: click on next page before data is loaded breaks the site
Reproduce example: search for 'test' in zenodo, click on page 3 and before the records load click on next page - a blank page appears. Locally it gives:
Uncaught runtime errors:
ERROR detailedRecord[0] is undefined