Fix for ignoreResourceNotFound = true' does not honour when use invalid file location

Fix for ignoreResourceNotFound = true' does not honour when use invalid file location