gdbstub.c: fix GDB connection segfault caused by empty machines