Enhanced collisional growth of a protoplanet that has an atmosphere