Set message to logMessage if an exception message does not exist