Update Thread.php

Fix a bug when saving a message on XenForo beta 1.2
Merge pull request #4 from cclaerhout/patch-4

Update Thread.php