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.