Fix a crash in SplitAndCleanPath() when 'path' is null.