On the behaviour of solutions to the Dirichlet problem for the $p(x)$-Laplacian when $p(x)$ goes to $1$ in a subdomain