As the trolley carrying the sand bag is moving uniformly, therefore, external force on the system = 0.
When the sand leaks out, it does not lead to the application of any external force on the trolley. Hence, the speed of the trolley shall not change.