Bug fixing for UriException that is thrown from method
getResourceAsFile.