fixed bug where empty tag makes template rendering fail, removed empty tag from database