(upstream git commit b45e7b8b7968855411d6270aa36897431b8e15de) Fix segfault when sending empty tag strings (upstream git commit be44e166c40e9708dbee563dbe6915a5391fe75c)