Proper comparison of userAgent string for no user input

The previous PR didn't compare the string properly.  It was checking for a null pointer but the val_string method will default strings to an empty string.  Therefore strcmp needs to be used to compare the input string with "".