Fixed an undefined index error because the comment field was not passed and error logging is different on target server