Fix for GetBlockValue() after block 13,440,000

Fixes issue #3776.

Edit @laanwj: clarified pull title