Funny, I recently asked about this function and @tpmanley (Tom) kindly filled in some details. He noticed an issue in the code & created a ticket for it. Perhaps someone tried to fix it & broke what you found, Kevin.
(Another case where running unit tests before merging to mainline would have caught it.)