The provisions of Sections 1305 and 1306 shall not affect the payment of bail deposits into the city or county treasury, as the case may be, pursuant to Section 40512 of the Vehicle Code in those cases arising under Section 40500 of the Vehicle Code.