Update: Making this function statically return `false` and commenting out this block "fixes" the problem.