[Bug 20836] Regression: Opening non-exe/dll files causes a segfault