Fix crash when deleting a global source that didn't load