My fix is still in review and hasn't made it into upstream Valhalla yet, so the upstream maintainers of Valhalla are asking to revert this change for now. I'm a bit concerned this will hide the underlying bug in Valhalla but I was able to extract a pretty small extract of the OSM data to reproduce the bug which should allow us to test the fix independently of this change being rolled back.