[MSBuild] Fixed a test that failed when the GAC wasn't available

The test tried to resolve an assembly from the GAC, which doesn't work on a clean machine without an existing Mono installation.
We now check if the GAC directory is missing and ignore the test in that case.

Changes released under MIT/X11.

I guess @mhutch