Fix removing a tag from a ticket without removing it from the project
Basically, when removing a tag from a ticket it was entirely removed
from the project, instead of just removed from the ticket.
This commit fixes it and add tests to ensure the tag remains with the
project after being removed from the ticket.
Fixes https://pagure.io/pagure/issue/1746