Doctor Who writer Mark Gatiss believes that the show's latest controversial twist can be handled by following in the footsteps of a classic TV show.