MDL-36804: Ensure attemptnumber is set for a submission after a call to get_user_submission