io: Fixed segfault in case if there is no filename
v2.25.0.10.3