Fixed an issue with render_to_string

render_to_string requires a dictionary for arguments. Without this fix it caused an error.