Alex Walmsley has undergone surgery for a fractured bone in his neck after sustaining the injury in St Helens' win over Warrington.