Work around Webkit returning a null rectangle for a zero-size wrapped space

Issue #2775