MOSYNC-2848. Fix for getting handle when only path was set situations and vice versa.