fix crash when a file doesn t exit in the static folder

fix crash when a file doesn't exit in static folder.