Handle img.getDataset() with findAllByQuery() see #11807