Constraining models of modified gravity with the double pulsar PSR J0737-3039A/B system