d3dx9_36-DrawText: Fix condition when stripping NULL chars at the end of buffer.