Setting userid to NULL breaks comment inserting statement

 Default value for non logged user should be 0 and not null. It seems that in TYPO3 6.2 $GLOBALS['TSFE']->fe_user->user['uid'] is null if user is not logged and not 0. This breaks insert comment statement.