Btrfs: tests: checking for NULL instead of IS_ERR()