Return early from export function if data is empty to avoid crashes


Pick-to: 6.5
Change-Id: I4713d4a97b7854df8310e6d0766a694e11473768
Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
commit925d9cb0308af5b9d7ae84e7e16ca2c73a88b369
parent0d7a0d92c64a906748b0676ea502ec3d6ccf27d0
authorMatthias Rauter <matthias.rauter@qt.io>
committerVolker Hilsheimer <volker.hilsheimer@qt.io>
commit timeThu, 23 Feb 2023 17:38:08 +0000