Check for empty set

To prevent output like

> Paket failed with:
> 
> Error in resolution.
>   Resolved:
>   Con't resolve:
>     - Intelliplan.Example 1.3.276
>  Please try to relax some conditions.

I also removed some trailing whitespace. Tell me if you want me to strip that commit :smile: