OSHA has addressed this issue for portable generators and recognizes that, under certain circumstances (e.g. travel trailer), the frame doesn't need to be grounded, but itself can act as the ground. See the attached document - I circled the relevant information.