qtdemux: Use empty-array safe way to cleanup GPtrArray