added check that input file is not specified as an empty string, e.g. by passing an invalid filename to system.file refs redmine #1681