Conservation laws for a viscoelastic medium