MDL-28156 restore - fix some notices restoring empty courses