physfs seems buggy and allows opening empty filename, catch this case