Btrfs: checking for NULL instead of IS_ERR