Fix crash when connecting to gdbserver without loading a file first.

Patch from Abid, Hafiz.