I got following error in Magento 2.1.8 in my custom theme e.g. mytheme.
Exception #0 (Exception): Notice: Undefined variable: imageBlockBuilder in /home/public_html/app/design/frontend/Company/mytheme/Magento_Catalog/templates/product/list/items.phtml on line 220