PEP8
Fix bug 900529: Gracefully handle empty string in preview view.