Fix stuck block detection

Only update time of when a block is received when a block is received (rather than when any message is received).