Fix bug in turbolinks teardown