Fix undefined index for share mount point retrieval

Not sure why I was doing it the way I did before, but that didn't work. Only affects master.

@icewind1991 @DeepDiver1975 @bartv2