rather throw an exception explaining what went wrong than triggering a php warning on empty filename. should we even do file_exists()?
Merge pull request #377 from doctrine/cleanup-file

avoid php warning in File::setFileContentFromFilesystem