fix potential issues with empty spans being injected and getting dupe react-ids