fix the problem that member cannot comment if comment has NULL memberid(...

...refs #3681)