Fix a crash when the map name is null. Fix a crash when a thread list is requested from a backend that doesn't support it.
fix crash in asm.c

asm.c could assemble more instructions than spots in the token array,
this fixes it.