Add only installed gems in DependencyInstaller

RequestSet#install yields nil instead of an installer if the gem was not
installed, so only gems with an installer should be added to the
installed list.

This fixes several test errors.