Check what is already installed in the resolve module (fixes #454)

This is my work to fix https://github.com/conda/conda/issues/454.