Make Diehard.replaceBlocks work with an empty data.blocks array.

PHP encodes an empty array as [], not {}.
For that reason prototypes $H() messes up if data.blocks is empty.
A simple check if data.blocks is not an array helps to avoid this.