White Screens when submitting searches with Magento 1 Algolia Module

We have deployed the Algolia module to our website.

When doing a search term such as:


Everything works as expected.

But when searching for certain terms the website white screens and returns the following Javascript error.

Example search term:


Javascript error:

compiler.js:34 Uncaught TypeError: Cannot read property ‘length’ of undefined
at Object.e.scan (compiler.js:34)
at Object.e.compile (compiler.js:420)
at HTMLDocument. (autocomplete.js:15)
at u (jquery.js:3232)
at Object.add [as done] (jquery.js:3291)
at ge.fn.init.ge.fn.ready (jquery.js:3542)
at new ge.fn.init (jquery.js:2967)
at Object.ge [as $] (jquery.js:75)
at HTMLDocument. (autocomplete.js:2)

Check your page source, something is going wrong in your templates:

Fatal error: Call to a member function getData() on a non-object in /home/webuser/public_hardrace_up/app/design/frontend/rwd/jdmyard/template/catalog/product/list.phtml on line 116