please see the commit message for that change: https://github.com/lian/bitcoin/commit/1331ee88867459d34c953c1cb688b51c674b2d96

block.vtx.empty() is already checked 3 lines above in that same method.