Ensure that we are calling the proper ci_hook object
By default SQLAlchemy gives us a list so we need to access the first
element in it.
We could use `uselist=False` in the backref, but we'll need to adjust
all the plugins at one as otherwise we break pagure/ui/plugins.py.