Fixes error if VS 14.0 installed and VS 12.0 is not

Existing code throws exception if  Visual Studio 14.0 is installed and
Visual Studio 12.0 is not. Changed to verify key exists before
retrieving it.
Merge pull request #124 from kinyubi/master

Fixes error if VS 14.0 installed and VS 12.0 is not