Search for gravitational waves from Scorpius X-1 in the second Advanced LIGO observing run with an improved hidden Markov model