fixed no result error

fixed an error where program would try to pull image when no product
exists - added missing 'typeof' in code to fix