MDL-41383 theme: filepicker zoom resiliency

Fixed an issue that broke the file picker on bootstrapbase when zooming in and out.
MDL-45522 quiz Check that sumgrade is valid before saving.
MDL-45523 quiz Cleanup duplicate question instances.
Merge branch 'MDL-41383-27' of git://github.com/jethac/moodle