MDL-55565 core_backup: Fix warning when restoring question categories
MDL-55565 core_backup: Fix warning when restoring question categories

Fixed a call to get_records_sql, which was being used incorrectly in
restore_find_best_target_context to determine a unique contextid.

dilawar/moodle