What is $\Pr[F]$, the probability of stumbling upon a fixed point in $q$ queries to a uniform random permutation? Let's suppose they are all distinct—obviously repeating a query can only reduce $\Pr[F]$, and we are looking for an upper bound. Let $F_i$ be the event that the $i^{\mathit{th}}$ query is a fixed point: $\pi(x_i) = x_i$. Let $N_i$ be the event that none of the first $i - 1$ queries are fixed points: $\pi(x_1) \ne x_1, \dots, \pi(x_{i-1}) \ne x_{i-1}$. For a single input the output is uniformly distributed, so we have $$\Pr[F_i] = \Pr[\pi(x_i) = x_i] = 1/2^b.$$ The event $F$ can be written as: either $N_1$ and $F_1$, or $N_2$ and $F_2$, or $N_3$ and $F_3$, etc. By the chain rule, $$\Pr[F_i, N_i] = \Pr[F_i \mid N_i]\,\Pr[N_i].$$ Obviously $\Pr[N_1] = 1$; for $i > 1$,
\begin{align} \Pr[N_i] &= \Pr[\lnot F_{i-1}, N_{i-1}] = \Pr[\lnot F_{i-1} \mid N_{i-1}] \, \Pr[N_{i-1}] \\ &= \bigl(1 - \Pr[F_{i-1} \mid N_{i-1}]\bigr) \, \Pr[N_{i-1}]. \end{align}
Let's Let's now find $\Pr[F_i \mid N_i]$: in this event, given $N_i$, there are $i - 1$ possible values of $\pi(x_i)$ ruled out among the $2^b$ strings of $b$ bits, because they have already been covered by $\pi(x_1), \dots, \pi(x_{i-1})$. So the conditional probability that $x_i$ is a fixed point of $\pi$ given that none of the previous queries were is $$\Pr[F_i \mid N_i] = \frac{1}{2^b - (i - 1)}.$$ Thus we can write
\begin{equation} \Pr[N_i] = \prod_{j=1}^{i-1} \bigl(1 - \Pr[F_j \mid N_j]\bigr) = \prod_{j=1}^{i-1} \biggl(1 - \frac{1}{2^b - (j - 1)}\biggr), \end{equation}
$$\Pr[F_i \mid N_i] = \frac{1}{2^b - (i - 1)},$$ and sothus
\begin{align} \Pr[F] &= \sum_{i=1}^q \Pr[F_i, N_i] \\ &= \sum_{i=1}^q \Pr[F_i \mid N_i] \, \Pr[N_i] \\ &= \sum_{i=1}^q \frac{1}{2^b - (i - 1)} \prod_{j=1}^{i-1} \biggl(1 - \frac{1}{2^b - (j - 1)}\biggr). \end{align}\begin{align} \Pr[F] &= \sum_{i=1}^q \Pr[F_i, N_i] \\ &= \sum_{i=1}^q \Pr[F_i \mid N_i] \, \Pr[N_i] \\ &\leq \sum_{i=1}^q \Pr[F_i \mid N_i] &&\text{(since $0 \leq \Pr[N_i] \leq 1$)} \\ &= \sum_{i=1}^q \frac{1}{2^b - (i - 1)}. \end{align}
We can stop here, and set the bound $\Pr[F] \leq q/(2^b - (q - 1))$, since $\Pr[N_i] \leq 1$ so replacing it by $1$ can't make a wrong upper bound. AsHence as long as $q \leq 2^{b - 1}$, we thus have $$\lvert\Pr[A(\pi)] - \Pr[A(\delta)]\rvert \leq \Pr[F] \leq \frac{2 q}{2^b}$$ which is enough to give high confidence—if I didn't make any mistakes in the math above—that substituting a uniform random derangement for a uniform random permutation can't reduce the security by muchmore than a small factor that is linear in the number of the queries to the permutation.