[composer] Write a dummy Grid element when saving composer maps, fixes crash when loading project in older QGIS versions (fix #10905)