Bugfix Comments: unknown index 'user_id'
While adding a comment as a guest we have no 'user_id' index,
This juts adds a couple extra `isset()` checks.
Merge pull request #2607 from ryun/2.2/dev-comments-bug

Bugfix Comments: unknown index 'user_id'