Serverside check to prevent a rare bug

Apparently in rare cases client tries to build inside another block, it
doesn't go through but the block count decreases anyway, this should
prevent that.