On the treatment of resonant final states in direct reactions