Fixes segfault when using explorer before loading a file