Update TranslatableDataObject.php

Fixed for 3.1
https://github.com/unclecheese/TranslatableDataObject/issues/3

p.s. I'm using the web interface, and pasted the code in... so I'm not sure how this will turn out.