Fix undefined offset when formatting namespace suggestions