Fixes #515

When removing the last extension on a course, the _enabledExtensions attribute was deleted. This caused it to be ignored when refreshing the data, instead of updating it to be empty. This fix sets the attribute to be null before the refresh happens, so that the attribute exists and will cause the extensions to update.