Fix failing tests, add support for empty spans in Opera. Supplements #13132, #10406.