Pregrading fixes and improvements
There are two problems with pregrading:
- Solutions are not marked as ungraded before a solution is pregraded again when the scan is reuploaded. This results in graded solutions without any applied feedback options.
- Solutions are pregraded when the corresponding page is not able to be realigned. This results in wrongly graded solutions, like #376.