fullPathForFilename optimization: Checking whether the path is an empty string.
Merge pull request #6399 from dumganhar/v3

fullPathForFilename optimization: Checking whether the path is an empty string.