Handles comment submission if messageID or discussionID is undefined