Make the event stub NULL instead of an empty string if not set

... due to the unique constraint in the DB