Stoke City manager Tony Pulis admitted his side rode their luck as they took all three points at Wolverhampton Wanderers.