Fix getting error data from django template.

StringOrigin instances don't have loadname attribute.
Merge pull request #476 from pazur/patch-3

Fix getting error data from django template.