btrfs-progs: improved error handling in btrfs_print_tree