An employee was unloading a truck using a PIV. He backed the PIV out of the truck and noticed that some stock had fallen. He got off the PIV without setting the parking brake. The PIV rolled forward and pinched the employee's leg between the pallet and the side of the truck.