It shall be unlawful to ride on any vehicle upon any portion thereof not designed or intended for the use of passengers when the vehicle is in motion. This provision shall not apply to an employee engaged in the necessary discharge of his or her duty, or within truck bodies in space intended for merchandise.