QDoc: Handle empty QML code snippets gracefully
When a QML snippet contains no code, passing an empty string to
the QML parser causes unnecessary work and can produce confusing
warnings. This matters because documentation sources sometimes
contain placeholder or conditional snippets that resolve to
empty content.
Returning early for empty input avoids invoking the parser on
content that can't produce meaningful output. A debug message
helps authors trace where the empty snippet originates.
Fixes: QTBUG-90708
Change-Id: I318fc6d072dce9ca6456a4be0cd86b1f2cc11b82
Reviewed-by: Topi Reinio <topi.reinio@qt.io>