On the trace anomaly of a Weyl fermion in a gauge background