d'oh; I'd looked at 58534a8af51e5d476a3564906acbdea605906554, but missed it there (though it's not exactly obvious, with the check residing in the view... )

anyway, turns out it already works correctly: 83827785e803910dbbd9876b4779613cea5abed7