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