Fix PathsAreEqual method to handle empty strings

Fixes https://bugzilla.xamarin.com/show_bug.cgi?id=12668