Fixed Release Mode UI text cursor bug by fixing text_size() to work for empty string.