Fix how $selected_tags is passed to tags/editor element