fix segfault izz on non opened file

closes #1901