[backend] check the noinstall flag when querying preinstall images

In the buildengine case we want all packages available for the
engine.