`WM_modalkeymap_items_to_string` is expected to always return a string. But in the special case of zero length, the returned string was not terminated with `'\0'`. This can cause problems with the header of the knife tool for example. It always uses the returned string. (This issue was observed when investigating T103804).