Update Thread.php

Fix a bug when saving a message on XenForo beta 1.2