MDL-46819 gradebook: Automatically adjust weights and notify users if there is an error.