I wouldn't think a chick that young would have a full grown gape worm at thirteen weeks.
I think it has some type of respiratory infection going on.
You can treat for worms with Ivermectin. I use 1.5 cc/ml per gallon of water of injectible ivermection to worm. Put this in front of the birds...