str objects must be treated the same as unicode in this case

I was getting the following error while exporting results when the data was grouped by a field.  

Location: model_report/report.py in get_render_context, line 477
Exception Value: 'str' object has no attribute 'text'

So I changed the code to treat str objects in the same way as unicode in this section of the code.