Trim preview template so that createElement doesn't pick up an empty text node rather than the container.
Merge pull request #361 from bazerk/develop

Trim preview template so that createElement doesn't pick up an empty tex...