handling error messages better tp #1376

prevents output of "Error launching preview: ,error,[object Object]"
Merge pull request #449 from kobotoolbox/tp1376

handling error messages better tp #1376