Update tags.php

Bug in joomla-> cms  ->tag helper while deleting tags attached to any content.

Tags does not get deleted when all the attached tags have been removed from the com_content(article) in the previous condition there is nothing set in $newTags so it will not set the tagsChanged parameter to true which ultimately does not delete the tag in postStroreProcess where tagsChanged paramter is checked