Fix for #2328 - Added check for tag for title

Adding check for tag and if it exists using this for title.