shrpx: Fix bug in building certificate lookup tree