Vanishing sheaves and the geometric Whittaker model