Fix LayerTreeModel use of beginInsertRows with embedded legends

See http://hub.qgis.org/issues/11905