JBTM-2167 Updated so that we commit the transaction if there is nothing ...

...to update before attempting to commit to avoid deadlock in MySQL

!BLACKTIE !QA_JTA !QA_JTS_JACORB !XTS

Quick smoke test as the fix can only really be tested against mysql which I did locally in IDE