Fix parser error when block is empty