Fix scroll restoration in Android (bug 976466)