fdt: improve failure cases for fdt reading