Fix to supply queryType when no cache entry present (also updates XPI accordingly)