Fixed DebugBackend::RegisterScript and DebugBackend::GetScriptIndex not declared as retuning signed int

Fixed DebugBackend::RegisterScript and DebugBackend::GetScriptIndex wrongly declared as returning an unsigned int when in fact they can return -1 and fix this wrong assumption in other places