LB-471: Update items will cause them removed from Timeline

Fix template condition which eval the code sent by user
so if there was any apostrophe it would break js code.
Merge pull request #49 from petrjasek/lb-471-fix-template-if

LB-471: Update items will cause them removed from Timeline