Mr. Obama was rehearsing his 2004 convention speech backstage , when Mr. Favreau , then a member of John Kerry 's staff , interrupted him : the senator needed to rewrite a line from his speech to avoid an overlap .