fix 6.2 related issue. Default value for non logged user should be 0 and not null
Merge pull request #1 from sorenmalling/6.2-fix

Setting userid to NULL breaks comment inserting statement