[composer] Ensure that composers are deleted before compositions

Fixes some rare crashes when loading projects.
Minor code cleanups for composer attribute table widget
Fix Qt warning caused by destructor of QgsNetworkContentFetcher