Fix another case where getBlockDensity could run forever.Signed-off-by: Ross Allan <[email protected]> (commit: 9a05d09)