fix bug when retrieving message.tags

fix bug when retrieving message.tags in base.html template